package com.coffeeloversupportlibrary.coffeelover.uicompont;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
import android.widget.ImageView;

import com.coffeeloversupportlibrary.R;

public class UiActivity extends AppCompatActivity {
    private ImageView fan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.my_dialog);
        init();
    }
    private void init(){
        fan=findViewById(R.id.fan);
        // TODO: 2021/11/28  借助工具类 让风扇干活 
        RotateAnimation rotateAnimation = AnimationUtils.initRotateAnimation(true, 1000, true,
                Animation.INFINITE);
        fan.setAnimation(rotateAnimation);
    }
}